<html lang="en">
<head>
    <title>注册用户管理</title>
    <#include  "../common/header.ftl">
</head>
<body>
<!--左侧菜单回显变量设置-->
<#assign currentMenu='user'>


<div class="container " style="margin-top: 20px">
    <#include  "../common/top.ftl">
    <div class="row">
        <div class="col-sm-2">
            <#include  "../common/menu.ftl">
        </div>
        <div class="col-sm-10">
            <div class="row">
                <div class="col-sm-12">
                    <h1 class="page-head-line">用户管理</h1>
                </div>
            </div>
            <!--高级查询--->
            <form class="form-inline" id="searchForm" action="/user/list.do" method="post">
                <input type="hidden" name="currentPage" id="currentPage" value="1">
                <div class="form-group">
                    <label for="keyword">关键字:</label>
                    <input type="text" class="form-control" id="keyword" name="keyword" value="${qo.keyword!}" placeholder="请输入昵称/邮箱">
                </div>

                <button id="btn_query" class="btn btn-info"><span class="glyphicon glyphicon-search"></span> 查询</button>
            </form>

            <table class="table table-striped table-hover" >
                <thead>
                    <tr>
                        <th>编号</th>
                        <th>邮箱</th>
                        <th>昵称</th>
                        <th>地区</th>
                        <th>头像</th>
                        <th>性别</th>
                        <th>签名</th>
                    </tr>
                </thead>

                <#list result.list as entity>
                     <tr>
                         <td>${entity_index + 1}</td>
                         <td>${entity.email}</td>
                         <td>${entity.nickName}</td>
                         <td>${entity.place!}</td>
                         <td><img src="${entity.headImgUrl}" width="30px"></td>
                         <td>
                             <#if entity.gender??>
                                <#if entity.gender==1>
                                    男
                                </#if>
                                 <#if entity.gender==0>
                                    女
                                 </#if>
                                 <#if entity.gender==-1>
                                    保密
                                 </#if>
                             </#if>
                         </td>
                         <td>${entity.sign!"小主很懒，没留下签名"}</td>
                     </tr>
                </#list>

            </table>
            <#include "../common/page.ftl">
        </div>
    </div>
</div>
</body>
</html>